package cn.edu.sgu.www.mhxysy.dto.chongwu;

import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.PositiveOrZero;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class ChongwuInitZizhiSpecialDTO implements DataTransferObject {

    /**
     * 攻击资质
     */
    @Positive(message = "攻击资质" + CustomMessages.ILLEGAL)
    @NotNull(message = "攻击资质" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "攻击资质", required = true)
    private Integer gjzz;

    /**
     * 防御资质
     */
    @Positive(message = "防御资质" + CustomMessages.ILLEGAL)
    @NotNull(message = "防御资质" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "防御资质", required = true)
    private Integer fyzz;

    /**
     * 体力资质
     */
    @Positive(message = "体力资质" + CustomMessages.ILLEGAL)
    @NotNull(message = "体力资质" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "体力资质", required = true)
    private Integer tlzz;

    /**
     * 法力资质
     */
    @Positive(message = "法力资质" + CustomMessages.ILLEGAL)
    @NotNull(message = "法力资质" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "法力资质", required = true)
    private Integer flzz;

    /**
     * 速度资质
     */
    @Positive(message = "速度资质" + CustomMessages.ILLEGAL)
    @NotNull(message = "速度资质" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "速度资质", required = true)
    private Integer sdzz;

    /**
     * 宠物成长
     */
    @Range(min = 0, max = 1300, message = "宠物成长" + CustomMessages.ILLEGAL)
    @ApiModelProperty(value = "宠物成长", required = true)
    private Integer chengzhang;

    /**
     * 宠物类型ID
     */
    @ApiModelProperty(value = "宠物类型ID")
    private Integer chongwuId;

    /**
     * 资质名称
     */
    @NotBlank(message = "资质名称" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "资质名称", required = true)
    private String name;

    /**
     * 参战等级
     * 特殊宠物的该字段才有值
     */
    @PositiveOrZero(message = "参战等级" + CustomMessages.ILLEGAL)
    @NotNull(message = "参战等级" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "参战等级", required = true)
    private Integer fightGrade;

    /**
     * 特殊资质
     */
    @PositiveOrZero(message = "特殊资质" + CustomMessages.ILLEGAL)
    @NotNull(message = "特殊资质" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "特殊资质", required = true)
    private Integer specialType;

    /**
     * 提升次数
     */
    @Range(min = 0, max = 6, message = "提升次数" + CustomMessages.ILLEGAL)
    @NotNull(message = "提升次数" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "提升次数", required = true)
    private Integer improveTimes;

    /**
     * 技能数量
     */
    @Range(min = 3, max = 5, message = "技能数量" + CustomMessages.ILLEGAL)
    @NotNull(message = "技能数量" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "技能数量", required = true)
    private Integer skillQuantity;

    /**
     * 内丹数量
     */
    @Range(min = 3, max = 5, message = "内丹数量" + CustomMessages.ILLEGAL)
    @NotNull(message = "内丹数量" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "内丹数量", required = true)
    private Integer neidanQuantity;
}